<template>
  <!--新增促销单-->
    <div>
      <!-- 面包屑导航 -->
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item  :to="{ path: '/' }" >首页</el-breadcrumb-item>
        <el-breadcrumb-item style="font-size:18px" >{{order}}订单促销</el-breadcrumb-item>
      </el-breadcrumb>



    </div>
</template>

<script>
    export default {
        name: "AddPromotion",
      data() {
        return {
          order:"",
        }
      },
      methods:{

        //获取上个页面跳转过来的数据
        getInfo(){
          this.order=this.$route.params.order;
          if(this.$route.params.row){
            console.info(this.$route.params.order+","
              +this.$route.params.row.date);
          }
        }
      },
      //页面挂载后
      created(){
          this.getInfo();

      },
    }
</script>

<style scoped>

</style>
